package com.pospi.dialog;

import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.view.View;
import android.widget.TextView;

import com.pospi.pai.yunpos.R;
import com.pospi.pai.yunpos.util.CircleProgressView;

/**
 * Created by acer on 2018/8/31.
 */

public class DownDialog extends Dialog {

    private CircleProgressView view;

    public DownDialog(Context context) {
        super(context);
        /**设置对话框背景透明*/
        setContentView(R.layout.dialog_down);
        view = (CircleProgressView) findViewById(R.id.circle_progress_view);
        setCanceledOnTouchOutside(false);
    }

    public void setProgress(float progress) {
        view.setProgress(progress);
    }
}
